home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / sendmail / sendmail-5.65 / support / fdopen.patch next >
Encoding:
Text File  |  1989-01-19  |  585 b   |  27 lines

  1. If your system doesn't buffer streams that are fdopen'd,
  2. apply the following patch.  It makes a tremendous difference.
  3.  
  4. *** deliver.c.orig    Wed Jul 23 18:27:04 1986
  5. --- deliver.c    Tue Nov 24 14:39:10 1987
  6. ***************
  7. *** 694,699 ****
  8. --- 694,700 ----
  9.       FILE *mfile;
  10.       FILE *rfile;
  11.       extern FILE *fdopen();
  12. +     static char mbuffer[BUFSIZ];
  13.   
  14.   # ifdef DEBUG
  15.       if (tTd(11, 1))
  16. ***************
  17. *** 910,915 ****
  18. --- 925,931 ----
  19.   
  20.       (void) close(mpvect[0]);
  21.       mfile = fdopen(mpvect[1], "w");
  22. +     setbuffer(mfile, mbuffer, BUFSIZ);
  23.       if (clever)
  24.       {
  25.           (void) close(rpvect[1]);
  26.  
  27.